Fwd: Solaris build of 7.4 problem with --enable-thread-safety - Mailing list pgsql-bugs

From Seum-Lim Gan
Subject Fwd: Solaris build of 7.4 problem with --enable-thread-safety
Date
Msg-id p0510030cbbe7e649833a@[192.168.10.145]
Whole thread Raw
Responses Re: Fwd: Solaris build of 7.4 problem with --enable-thread-safety  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-bugs
>Date: Mon, 24 Nov 2003 10:11:15 -0600
>To: pgsql-ports@postgresql.org
>From: Seum-Lim Gan <slgan@lucent.com>
>Subject: Solaris build of 7.4 problem with --enable-thread-safety
>Cc: Josh Berkus <josh@agliodbs.com>
>Bcc:
>X-Attachments:
>
>Hi Josh,
>
>Is there someone could look into this ?
>I have narrowed down the problem.
>
>Thanks.
>
>Gan
>
>
>This problem will only occur if I configure to use
>the --enable-thread-safety option.
>
>Here is the configure options I used:
>
>MYCC=/opt/SUNWspro6.2/SUNWspro/bin/cc
>
>/bin/env CC=$MYCC CFLAGS='-C -mt -D_SVR4 ' ./configure \
>--prefix=/platdb \
>--with-pgport=5333 \
>--without-readline \
>--with-CXX \
>--with-perl \
>--with-java \
>--with-pam \
>--enable-syslog \
>--enable-nls \
>--enable-thread-safety
>
>Wihout the --enable-thread-safety option, everything compiled fine.
>
>With --enable-thread-safety, it failed while trying to compile the
>src/interfaces/ecpg/ecpglib
>
>I have already cut down my configure to have just the following and
>compile failed the same way:
>
>MYCC=/opt/SUNWspro6.2/SUNWspro/bin/cc
>
>/bin/env CC=$MYCC CFLAGS='-C -mt -D_SVR4 ' ./configure \
>--prefix=/platdb \
>--without-readline \
>--enable-thread-safety
>
>Below is the make output:
>
>make[4]: Entering directory
>`/n/DBMS/edbteam/src/sol8/sparc64/postgresql-7.4/src/interfaces/ecpg/ecpglib'
>/opt/SUNWspro6.2/SUNWspro/bin/cc -Xa -G -h libecpg.so.4 execute.o
>typename.o descriptor.o data.o error.o prepare.o memory.o connect.o
>misc.o -L../../../../src/port -L../pgtypeslib -lpgtypes
>-L../../../../src/interfaces/libpq -lpq -lm -pthread -R/platdb/lib
>-o libecpg.so.4.0
>cc: Warning: multiple use of -h option, previous one discarded.
>ld: fatal: recording name conflict: file
>`../../../../src/interfaces/libpq/libpq.so' and -h option provide
>identical dependency names: read
>ld: fatal: File processing errors. No output written to libecpg.so.4.0
>make[4]: *** [libecpg.so.4.0] Error 1
>make[4]: Leaving directory
>`/n/DBMS/edbteam/src/sol8/sparc64/postgresql-7.4/src/interfaces/ecpg/ecpglib'
>make[3]: *** [all] Error 2
>make[3]: Leaving directory
>`/n/DBMS/edbteam/src/sol8/sparc64/postgresql-7.4/src/interfaces/ecpg'
>make[2]: *** [all] Error 2
>make[2]: Leaving directory
>`/n/DBMS/edbteam/src/sol8/sparc64/postgresql-7.4/src/interfaces'
>make[1]: *** [all] Error 2
>make[1]: Leaving directory
>`/n/DBMS/edbteam/src/sol8/sparc64/postgresql-7.4/src'
>make: *** [all] Error 2
>
>
>At 2:44 pm -0600 2003/11/21, Seum-Lim Gan wrote:
>>Hi,
>>
>>I did not get any respond to this build error.
>>How should I proceed with this ?
>>Is there anything in the makefile I need to change ?
>>
>>I did not get this build error when I way compiling the 7.4b4.
>>
>>Thanks.
>>
>>Gan
>>
>>At 11:45 am -0600 2003/11/20, Seum-Lim Gan wrote:
>>>Hi,
>>>
>>>I tried to compile the new 7.4 in Solaris 2.9 Sparc
>>>and Solaris 2.8 intel and got the same make error:
>>>
>>>Solaris 8 intel:
>>>================
>>>/opt/SUNWspro6.2/SUNWspro/bin/cc -Xa -G -h libecpg.so.4 execute.o
>>>typename.o descriptor.o data.o error.o prepare.o memory.o
>>>connect.o misc.o -L../../../../src/port -L../pgtypeslib -lpgtypes
>>>-L../../../../src/interfaces/libpq -lpq -lm -pthread -R/platdb/lib
>>>-o libecpg.so.4.0
>>>cc: Warning: multiple use of -h option, previous one discarded.
>>>ld: fatal: recording name conflict: file
>>>`../../../../src/interfaces/libpq/libpq.so' and -h option provide
>>>identical dependency names: read
>>>ld: fatal: File processing errors. No output written to libecpg.so.4.0
>>>make[4]: *** [libecpg.so.4.0] Error 1
>>>make[4]: Leaving directory
>>>`/n/DBMS/edbteam/src/sol8/intel32/postgresql-7.4/src/interfaces/ecpg/ecpglib'
>>>make[3]: *** [all] Error 2
>>>make[3]: Leaving directory
>>>`/n/DBMS/edbteam/src/sol8/intel32/postgresql-7.4/src/interfaces/ecpg'
>>>make[2]: *** [all] Error 2
>>>make[2]: Leaving directory
>>>`/n/DBMS/edbteam/src/sol8/intel32/postgresql-7.4/src/interfaces'
>>>make[1]: *** [all] Error 2
>>>make[1]: Leaving directory
>>>`/n/DBMS/edbteam/src/sol8/intel32/postgresql-7.4/src'
>>>make: *** [all] Error 2
>>>
>>>
>>>Solaris 9 Sparc:
>>>================
>>>/opt/SUNWspro6.2/SUNWspro/bin/cc -Xa -G -h libecpg.so.4 execute.o
>>>typename.o descriptor.o data.o error.o prepare.o memory.o
>>>connect.o misc.o -L../../../../src/port -L../pgtypeslib -lpgtypes
>>>-L../../../../src/interfaces/libpq -lpq -lm -pthread -R/platdb/lib
>>>-o libecpg.so.4.0
>>>cc: Warning: multiple use of -h option, previous one discarded.
>>>ld: fatal: recording name conflict: file
>>>`../../../../src/interfaces/libpq/libpq.so' and -h option provide
>>>identical dependency names: read
>>>ld: fatal: File processing errors. No output written to libecpg.so.4.0
>>>make[4]: *** [libecpg.so.4.0] Error 1
>>>make[4]: Leaving directory
>>>`/n/DBMS/edbteam/src/sol9/sparc64/postgresql-7.4/src/interfaces/ecpg/ecpglib'
>>>make[3]: *** [all] Error 2
>>>make[3]: Leaving directory
>>>`/n/DBMS/edbteam/src/sol9/sparc64/postgresql-7.4/src/interfaces/ecpg'
>>>make[2]: *** [all] Error 2
>>>make[2]: Leaving directory
>>>`/n/DBMS/edbteam/src/sol9/sparc64/postgresql-7.4/src/interfaces'
>>>make[1]: *** [all] Error 2
>>>make[1]: Leaving directory
>>>`/n/DBMS/edbteam/src/sol9/sparc64/postgresql-7.4/src'
>>>make: *** [all] Error 2
>>>
>>>
>>>Could you help ?
>>>
>>>Thanks.
>>>
>>>Gan
>
>-

--
+--------------------------------------------------------+
| Seum-Lim GAN                 email : slgan@lucent.com  |
| Lucent Technologies                                    |
| 2000 N. Naperville Road, 6B-403F  tel : (630)-713-6665 |
| Naperville, IL 60566, USA.        fax : (630)-713-7272 |
|       web : http://inuweb.ih.lucent.com/~slgan         |
+--------------------------------------------------------+

pgsql-bugs by date:

Previous
From: Neil Conway
Date:
Subject: Re: memory bug
Next
From: "Antony Brooke-Wood"
Date:
Subject: String index out of range - Postgresql 7.3.4, Resin & JDBC